home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / screen.vim < prev    next >
Encoding:
Text File  |  2001-08-01  |  3.5 KB  |  88 lines

  1. "  vim: set sw=4 sts=4:
  2. "  Maintainer    : Nikolai 'pcp' Weibull <da.box@home.se>
  3. "  URL        : http://www.pcppopper.org/
  4. "  Revised on    : Wed, 01 Aug 2001 02:02:07 CEST
  5. "  Language    : Screen Virtual Terminal Emulator/Manager Configuration File
  6.  
  7. if version < 600
  8.     syntax clear
  9. elseif exists("b:current_syntax")
  10.     finish
  11. endif
  12.  
  13. " comments
  14. syn region  screenComment    matchgroup=screenComment start="#" end="$" contains=screenTodo
  15.  
  16. " todo
  17. syn keyword screenTodo        contained TODO FIXME
  18.  
  19. " string (can contain variables)
  20. syn region  screenString    matchgroup=screenString start='"' skip='\\"' end='"\|$' contains=screenVariable,screenSpecial
  21.  
  22. " literal string
  23. syn region  screenLiteral    matchgroup=screenLiteral start="'" skip="\\'" end="'\|$"
  24.  
  25. " environment variables
  26. syn match   screenVariable    contained "$\(\h\w*\|{\h\w*}\)"
  27.  
  28. " booleans
  29. syn keyword screenBoolean    on off
  30.  
  31. " numbers
  32. syn match   screenNumbers    "\<\d\+\>"
  33.  
  34. " specials
  35. syn match   screenSpecials    contained "%\([%aAdDhlmMstuwWyY?:{]\|[0-9]*n\|0?cC\)"
  36.  
  37. " commands
  38. syn keyword screenCommands    acladd aclchg acldel aclgrp aclumask activity addacl allpartial at attrcolor
  39. syn keyword screenCommands    autodetach bell_msg bind bindkey bufferfile caption chacl chdir clear colon
  40. syn keyword screenCommands    command compacthist console copy copy_regcrlf debug detach digraph dinfo crlf
  41. syn keyword screenCommands    displays dumptermcap echo exec fit focus height help history
  42. syn keyword screenCommands    info kill lastmsg license lockscreen markkeys meta msgminwait msgwait
  43. syn keyword screenCommands    multiuser nethack next nonblock number only other partial_state
  44. syn keyword screenCommands    password paste pastefont pow_break pow_detach_msg prev printcmd process
  45. syn keyword screenCommands    quit readbuf readreg redisplay register remove removebuf reset resize screen
  46. syn keyword screenCommands    select sessionname setenv shelltitle silencewait verbose
  47. syn keyword screenCommands    sleep sorendition split startup_message stuff su suspend time
  48. syn keyword screenCommands    title umask version wall width writebuf xoff xon defmode hardstatus
  49. syn match   screenCommands    "\<\(def\)\=\(autonuke\|bce\|c1\|charset\|escape\|flow\|kanji\|login\|monitor\|hstatus\|obuflimit\)\>"
  50. syn match   screenCommands    "\<\(def\)\=\(scrollback\|shell\|silence\|slowpaste\|utf8\|wrap\|writelock\|zombie\|gr\)\>"
  51. syn match   screenCommands    "\<hard\(copy\(_append\|dir\)\=\|status\)\>"
  52. syn match   screenCommands    "\<log\(file\|in\|tstamp\)\=\>"
  53. syn match   screenCommands    "\<map\(default\|notnext\|timeout\)\>"
  54. syn match   screenCommands    "\<term\(cap\|info\|capinfo\)\=\>"
  55. syn match   screenCommands    "\<vbell\(_msg\|wait\)\=\>"
  56.  
  57. if exists("screen_minlines")
  58.     let b:screen_minlines = screen_minlines
  59. else
  60.     let b:screen_minlines = 10
  61. endif
  62. exec "syn sync minlines=" . b:screen_minlines
  63.  
  64. " Define the default highlighting.
  65. " For version 5.7 and earlier: only when not done already
  66. " For version 5.8 and later: only when an item doesn't have highlighting yet
  67. if version >= 508 || !exists("did_screen_syn_inits")
  68.     if version < 508
  69.     let did_screen_syn_inits = 1
  70.     command -nargs=+ HiLink hi link <args>
  71.     else
  72.     command -nargs=+ HiLink hi def link <args>
  73.     endif
  74.  
  75.     HiLink screenComment    Comment
  76.     HiLink screenTodo        Todo
  77.     HiLink screenString        String
  78.     HiLink screenLiteral    String
  79.     HiLink screenVariable   Identifier
  80.     HiLink screenBoolean    Boolean
  81.     HiLink screenNumbers    Number
  82.     HiLink screenSpecials   Special
  83.     HiLink screenCommands   Keyword
  84.     delcommand HiLink
  85. endif
  86.  
  87. let b:current_syntax = "screen"
  88.